﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using AjaxControlToolkit;
using System.Web.UI;

namespace Kevin.Controls
{
    /// <summary>
    /// 子绑定项
    /// </summary>
    public class ExtendFiled:DataField
    {
        public ExtendFiled()
        {
            base.BindType = BindType.Extend;
            base.Align = AlignType.Center;
        }
        /// <summary>
        /// 关联的子Grid ID
        /// </summary>
        public string GridID
        {
            get;
            set;
        }
        /// <summary>
        /// 子Grid所需要的WebService路径
        /// </summary>
        [UrlProperty]
        [TypeConverter(typeof(ServicePathConverter))]
        public string ServicePath
        {
            get;
            set;
        }

        /// <summary>
        /// 子Grid的WebMethod
        /// </summary>
        public string QueryMethod
        {
            get;
            set;
        }
        /// <summary>
        /// 传给子Grid的参数，多个请以逗号分割
        /// </summary>
        public string FormatFileds
        {
            get;
            set;
        }
        /// <summary>
        /// 子Gird的样式
        /// </summary>
        public string SubGridCssClassName
        {
            get;
            set;
        }
        string _ExtendTitle="展开";
        /// <summary>
        /// 展开时的消息提示
        /// </summary>
        public string ExtendTitle
        {
            get { return _ExtendTitle; }
            set { _ExtendTitle = value; }
        }
        string _ExtendHiddenTitle="折叠";
        /// <summary>
        /// 折叠时的消息提示
        /// </summary>
        public string ExtendHiddenTitle
        {
            get { return _ExtendHiddenTitle; }
            set { _ExtendHiddenTitle = value; }
        }
    }
}
